﻿using System;
using System.Collections.Generic;
using System.Text;
using Slf;

namespace Log_All_To_Console
{
  class Program
  {
    static void Main(string[] args)
    {
      Console.ForegroundColor = ConsoleColor.Green;
      Console.Out.WriteLine("App.config was configured to write to the console...\n\n");
      Console.ResetColor();


      //get the declared logger
      ILogger logger = LoggerService.GetLogger();
      logger.Info("Hello world! This sample was executed at '{0}'", DateTime.Now);

      Console.ReadLine();
    }
  }
}
